-- GENERATED SPELL FOR [Stars' Rest Sentinel] --


function spell0_26448(pUnit, Event) --@Frost Arrow,n/a--
pUnit:FullCastSpellOnTarget(47059,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26448', 2000, 1)
end

function spell1_26448(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26448', 563, 1)
end

function Sorts_26448(pUnit, Event)
local choix_sorts_26448 = math.random(0, 1)
if choix_sorts_26448 == 0 then
pUnit:RegisterEvent('spell0_26448', 1, 1)
end
if choix_sorts_26448 == 1 then
pUnit:RegisterEvent('spell1_26448', 1, 1)
end
end

function mob26448_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26448', math.random(1500, 3000), 1)
end

function mob26448_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26448_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26448_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26448, 1, 'mob26448_Action')
RegisterUnitEvent(26448, 2, 'mob26448_Leave')
RegisterUnitEvent(26448, 3, 'mob26448_Kill')
RegisterUnitEvent(26448, 4, 'mob26448_Die')
